/*******************************************************************
 *
 * Copyright (C), 2018-2018, www.letstrong.cn, All rights reserved.
 *
 * Author      : xiaoyu | xiaoyu_ebox@163.com
 * Create Time : 2018-6-4
 * Version     : v0.1
 * Description : ugui_types header file
 *******************************************************************/
#ifndef __UGUI_TYPES_H__
#define __UGUI_TYPES_H__

/*----------------------------Head file----------------------------*/
#include "stdio.h"

/*----------------------------macro file---------------------------*/

/*----------------------------type define--------------------------*/
// linux gcc(bit): char->8; short->16; int->32; long long->64; long(long int)->32||64
typedef signed char         sint8;
typedef signed short        sint16;
typedef signed int          sint32;
typedef signed long long    sint64;

typedef unsigned char       uint8;
typedef unsigned short      uint16;
typedef unsigned int        uint32;
typedef unsigned long long  uint64;


// Specify platform-dependent integer types here
#define __UG_CONST   const
typedef uint8      			UG_U8;
typedef sint8       		UG_S8;
typedef uint16     			UG_U16;
typedef sint16      		UG_S16;
typedef uint32     			UG_U32;
typedef sint32      		UG_S32;


/* Example for dsPIC33
typedef unsigned char         UG_U8;
typedef signed char           UG_S8;
typedef unsigned int          UG_U16;
typedef signed int            UG_S16;
typedef unsigned long int     UG_U32;
typedef signed long int       UG_S32;
*/

#ifndef bool
typedef UG_U8 bool;
#endif
#ifndef false
#define false					0
#endif
#ifndef true
#define true					1
#endif
/*-----------------------------------------------------------------*/



#endif // __UGUI_TYPES_H__

